package jmlee.basic;

public class J02_Arithmathic {

	public static void main(String[] args) {
		double number = (1/3)*3;
		int quotient = 7/3;
		int remainder = 7%3;
		int result = 11; result /= 2;
		result++;
		result = result +1;
		
		// 결과가 무엇일까?
		System.out.println("(1/3)*3        = "+number);
		
		// 자료형 변환(명시적)
		System.out.println(((float)1/3)*3);
		
		// 실수리터럴
		System.out.println((1./3)*3);
		System.out.println((1F/3)*3);
			
		System.out.println("7/3            = "+quotient);
		System.out.println("7%3            = "+remainder);
		System.out.println("(result/=2)    = "+result);
	}

}
